<!-- START PAGE -->
        <div id="page">


            <!-- start page title -->

                <div class="page-title">
                	<div class="in">
                   	<div class="titlebar">	<h2><?php echo $template['title']?></h2>	<p>This is a quick overview of <?php echo $template['title']?></p></div>

                    </div>
                </div>
                <!-- end page title -->

            <!-- START CONTENT -->
            <div class="content">
                <!-- START SIMPLE FORM -->
                        	<div class="simplebox grid740">
                            	<div class="titleh">
                                	<h3><?php echo $template['title']?></h3>
                                 </div>
                                <div class="body">

                                  <form id="form_add" name="form2" method="post" action="<?php echo $link_action?>" enctype="multipart/form-data">

                                  	<div class="st-form-line">
                                    	<span class="st-labeltext">Tên danh mục</span>
                                        <input name="name" id="name" type="text" class="st-forminput" style="width:510px" value="" />
                                        <span style="margin-left: 160px; color:#ff0000"><?php echo form_error('name'); ?></span>
                                    	<div class="clear"></div>
                                   </div>
                                   <div class="st-form-line">
                                       <span class="st-labeltext">Nhóm danh mục</span>
                                        <select name="group_category_id" id="group_category_id" class="uniform">
                                            <option value="" selected="selected">[Chọn nhóm danh mục]</option>
                                            <?php if(count($groups)) : ?>
                                                <?php foreach($groups as $group) : ?>
                                                    <option value="<?=$group['id']?>"><?=$group['name']?></option>
                                                <?php endforeach ?>
                                            <?php endif ?>
                                        </select>
                                        <br><span style="margin-left: 160px; color:#ff0000"><?php echo form_error('group_category_id'); ?></span>
                                        <div class="clear"></div>
                                    </div>
                                    <div class="st-form-line">
                                    	<span class="st-labeltext">Sắp xếp</span>
                                        <input name="order" id="order" type="text" class="st-forminput" placeholder="1" style="width:50px" value="" />
                                        <span style="margin-left: 160px; color:#ff0000"><?php echo form_error('order'); ?></span>
                                    	<div class="clear"></div>
                                    </div>
->
                                  	<div class="st-form-line">
                                    	<span class="st-labeltext">Mô tả</span>
                                        <textarea name="desc" class="st-forminput" id="desc" style="height:100px; width:510px;"></textarea>
                                    	<div class="clear"></div>
                                    </div>
                                    <div class="st-form-line">
                                        <span class="st-labeltext">Hình ảnh</span>
                                        <input name="pic" id="pic" type="file" class="uniform" style="width:50px" />
                                        <div class="clear"></div>
                                    </div>
                                    <div class="st-form-line">	<span class="st-labeltext">Published</span>
                                        <select name="status" id="status" class="uniform">
                                            <option value="1" selected="selected">Yes</option>
                                            <option value="0">No</option>
                                        </select>
                                    	<div class="clear"></div>
                                    </div>
                                   
                                    <div class="button-box">
                                   	  <input type="button" onclick="$('#form_add').submit()" name="button" id="button" value="Submit" class="st-button"/>
                                   	  <input type="button" name="button" id="button2" value="Cancel" onclick="location.href='<?php echo $link_cancel?>'" class="st-clear"/>
                                    </div>

                                  </form>

                                </div>
                            </div>
                        <!-- END SIMPLE FORM -->

            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->

    <div class="clear"></div>
<script type="text/javascript">
	jQuery(document).ready(function() {
		jQuery('#sidemenu ul li.active').removeClass('active');
		jQuery('<?=$m_active?>').addClass('active');
	});
</script>
